Working principle of dc generator with animation